import request from '@/utils/request'

// 查询解析列表
export function listResolution(query) {
  return request({
    url: '/cmdb/resolution/list',
    method: 'get',
    params: query
  })
}

// 查询解析详细
export function getResolution(id) {
  return request({
    url: '/cmdb/resolution/' + id,
    method: 'get'
  })
}

// 新增解析
export function addResolution(data) {
  return request({
    url: '/cmdb/resolution',
    method: 'post',
    data: data
  })
}

// 修改解析
export function updateResolution(data) {
  return request({
    url: '/cmdb/resolution',
    method: 'put',
    data: data
  })
}

// 删除解析
export function delResolution(id) {
  return request({
    url: '/cmdb/resolution/' + id,
    method: 'delete'
  })
}
